package com.hwadeefsc.springboot.service;

import com.hwadeefsc.springboot.entity.RewardsPunishments;
import com.hwadeefsc.springboot.utils.result.DataResult;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Map;

/**
 * (RewardsPunishments)表服务接口
 *
 * @author makejava
 * @since 2024-07-09 21:43:27
 */
public interface RewardsPunishmentsService {

    /**
     * 通过ID查询单条数据
     *
     * @param rpId 主键
     * @return 实例对象
     */
    RewardsPunishments queryById(Integer rpId);

    /**
     * 分页查询
     *
     * @param rewardsPunishments 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<RewardsPunishments> queryByPage(RewardsPunishments rewardsPunishments, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param rewardsPunishments 实例对象
     * @return 实例对象
     */
    RewardsPunishments insert(RewardsPunishments rewardsPunishments);

    /**
     * 修改数据
     *
     * @param rewardsPunishments 实例对象
     * @return 实例对象
     */
    RewardsPunishments update(RewardsPunishments rewardsPunishments);

    /**
     * 通过主键删除数据
     *
     * @param rpId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer rpId);

    List<Map<String, Object>> queryBytype(String type);
    List<Map<String, Object>> queryByStdId(Integer StudentId);
}
